[lua] support iOS triplets#16107
[lua] support iOS triplets#16107strega-nil merged 14 commits intomicrosoft:masterfrom luncliff:ios/lua
Conversation
* separate interpreter/compiler to lua[tools] feature * update git-tree SHA
ras0219-msft
left a comment
There was a problem hiding this comment.
Thanks for the PR!
The change to lua[cpp] is not permissible because it makes the feature non-additive -- if a user enables [cpp], this change would make the package no longer provide the C symbols. This violates the maintainer guidelines: https://github.com/microsoft/vcpkg/blob/master/docs/maintainers/maintainer-guide.md#do-not-use-features-to-implement-alternatives
Currently, the reason why having liblua.a and liblua-c++.a both available and linkable is that the symbols do not conflict. Users can link both just fine; the "linkage result" is controlled by whether they've requested C symbols via extern "C" or not.
If the changes to lua[cpp] are reverted, this LGTM.
|
Thanks for the point, @ras0219-msft ! |
|
Waiting for merge #16138. |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
ras0219-msft
left a comment
There was a problem hiding this comment.
This PR changes building tools to be off-by-default, however that matches the general expected behavior of vcpkg packages.
* set `ENABLE_LUA_CPP` for cmake wrapper
I was working on multiple PR and forgot about that... 7d53833 added the |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@ras0219-msft Should be good now. |
|
Found #16943. Commenting here to remind me to rebase this. :) |
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
|
Any progress here? |
Sorry. I couldn't work on this recently. I will update in this weekend |
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
use FEATURES instread of INVERTED_FEATURES to prevent confusions
|
Thanks again @luncliff :) |
What does your PR fix?
create a new patch with macro
__APPLE__andTARGET_OS_OSXsystem()functionSeparate
lua[tools]for Lua interpreter/compilerluai/luacas a default outputlua[tools], whenVCPKG_TARGET_IS_IOS, thenFATAL_ERRORThe
CONTROLfile is converted tovcpkg.jsonRemoved duplicatedvcpkg_configure_cmakeandvcpkg_install_cmakewhenlua[cpp]usedliblua.aandliblua-c++.atogether.)Since
lua-c++usesstd::exceptioninstead ofsetjmp, they should be separated unless the user knows the linkage result exactly.Which triplets are supported/not supported?
Support 4 ios triplets
arm64-iosarm-iosx64-iosx86-iosDoes your PR follow the maintainer guide?
Yes